Convert java object pointer to dart object which extends JObject.
typedef ConvertorToDartFromPointer = dynamic Function(Pointer<Void> ptr);