cast_on_library
cast_on_library(
array ,
dtype: dtype ,
)
Return an array cast to a NumPy dtype, on the library it is on.
A library which would hold the values in another dtype, as JAX does with 64-bit numbers unless told otherwise, is refused rather than trusted to keep them.