can_cast ======== Determines if one data type can be cast to another data type according to type promotion rules (see :ref:`type-promotion`). **Abstract Signature:** ``can_cast(from_: Union[dtype, array], to: dtype)`` .. raw:: html

JAX (Core)

API: jax.numpy.can_cast
Strategy: Direct Mapping

NumPy

API: numpy.can_cast
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.can_cast
Strategy: Direct Mapping