Converts a quaternion to an array.

// Returns [1, 2, 3, 4]
const arr = Chalkboard.quat.toArray(Chalkboard.quat.init(1, 2, 3, 4));