Determine if an ndarray data type can be safely cast to, or is of the same kind as, another ndarray data type.