fix: Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass()