[ios] In Objective-C, how do I test the object type?