pub fn primitive_to_same_primitive<T>(
    from: &PrimitiveArray<T>,
    to_type: &DataType
) -> PrimitiveArray<T>where
    T: NativeType,
Available on crate feature compute_cast only.
Expand description

Cast PrimitiveArray to a PrimitiveArray of the same physical type. This is O(1).