Returns True if cast between data types can occur without losing precision.
from: data type code :
Data type code to cast from.
to: data type code :
Data type code to cast to.
out : bool
True if cast can occur without losing precision.
Data type routines
numpy.common_type