diff --git a/arrow-cast/src/cast.rs b/arrow-cast/src/cast.rs index ceea3a39df47..0775392b7d64 100644 --- a/arrow-cast/src/cast.rs +++ b/arrow-cast/src/cast.rs @@ -1145,7 +1145,7 @@ pub fn cast_with_options( } } (Struct(_), Struct(to_fields)) => { - let array = array.as_any().downcast_ref::().unwrap(); + let array = array.as_struct(); let fields = array .columns() .iter()