Use to-array for faster unpacking