Availability::- use_module(library(jpl)).
(can be autoloaded)
jpl_object_to_type(+Object:jref,
-Type:type)Object must be a proper JPL reference to a Java object (i.e.
a class or array instance, but not null, void or String).
Type is the JPL type of that object.