Use built-in quaternion conversion