if ([[dataObject objectForKey:@"yourVariable"] isEqualToString:"Hello World"]) {
return YES;
} else {
return NO;
}
You can query values stored using KVC quickly and easily, without needing to retrieve or cast these as local variables.