pub fn to_arrow<A: AsRef<Array>>( array: A, data_type: &DataType, ) -> VortexResult<ArrayRef>
Convert the array to an Arrow array of the given type.