cast the reference to an array