You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dyn_array.rs
    path of file: ./repos/type-exercise-in-rust/expr-common/src/array
    
    the code of the file until where you have to start completion: // Copyright 2022 Alex Chi. Licensed under Apache-2.0.

use std::any::Any;

use super::all_arrays::*;
use super::{
    Array, ArrayBuilder, ArrayBuilderImpl, ArrayImpl, ArrayImplRef, BoxedArray, PhysicalType,
};
use crate::macros::for
    
            pub fn into_array_impl(self) -> ArrayImpl {
                let physical_type = self.0.physical_type();
                let boxed_any_array = self.0.into_any();
                match physical_type {
                    $(
                        PhysicalType::$Abc => ArrayImpl::$Abc(
                            *boxed_any_array.downcast::<$AbcArray>().expect("failed to downcast owned")
                        ),
                    )*
                }
            }