Determine if an ndarray data type can be safely cast or, for floating-point data types, downcast to another ndarray data type.