Added a trait for getArrayCopy