Did you know ... Search Documentation:
Predicate jpl_value_to_type/2
 jpl_value_to_type(+Value:datum, -Type:type)[private]
Value must be a proper JPL datum other than a ref i.e. primitive, String or void

Type is its unique most specific type, which may be one of the pseudo types char_byte, char_short or char_int.