title: How do I get the int value from object_getIvar(self, myIntVar) as it returns a pointer
body: <p>if the variable in object_getIvar is a basic data type (eg. float, int, bool) how do I get the value as the function  returns a pointer (id) according to the documentation. I've tried casting to an int, int* but when I try to get that to NSLog, I get error about an incompatible pointer type.</p>