pub fn primitive_as_primitive<I, O>(
    from: &PrimitiveArray<I>,
    to_type: &DataType
) -> PrimitiveArray<O> where
    I: NativeType + AsPrimitive<O>,
    O: NativeType
Available on crate feature compute_cast only.
Expand description

Cast PrimitiveArray as a PrimitiveArray Same as number as to_number_type in rust