This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ToQuaternion

ToQuaternion[q]
transforms q into a Quaternion object if possible.