pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool
Available on crate feature compute_cast only.
Expand description

Return true if a value of type from_type can be cast into a value of to_type. Note that such as cast may be lossy.

If this function returns true to stay consistent with the cast kernel below.