Data type routines

Data type routines

can_cast(from, totype, casting = ) Returns True if cast between data types can occur according to the casting rule.
promote_types(type1, type2) Returns the data type with the smallest size and smallest scalar kind to which both type1 and type2 may be safely cast.
min_scalar_type(a)