pub unsafe fn object_get_class(obj: *const Object) -> Result<*const ObjectClass>
This function is unsafe because it may dereference raw pointers.