ABRecordRef is a C type - it should not be stored in the ObjC type "id"!
Normally, if you want to test if an ObjC object is a particular class, you do it like the following:
"if ([obj isKindOfClass: [MyObjCClass class]]) ..."
But again, you should not be calling isKindOfClass (or any other ObjC method) on an instance of ABRecordRef - it is not an ObjC type.