Translates from the datatype specified by type to a native datatype. Returns the native datatype hid_t upon success, or a negative value on failure.