pub fn as_generic_list_array<T: OffsetSizeTrait>( array: &dyn Array, ) -> Result<&GenericListArray<T>>