Use object_getClass instead of -class to account for KVO magic.