NSPredicate check for kind of object class
Solution 1:
Try (depracated)
[NSPredicate predicateWithFormat: @"className == %@", [someObject className]]
Or
[NSPredicate predicateWithFormat: @"class == %@", [someObject class]]
Solution 2:
I got errors using Jef's method. This worked for me, though.
NSPredicate *predicate = [NSPredicate predicateWithFormat:
@"self isKindOfClass: %@", class];
Source: https://stackoverflow.com/a/2556306/168594