Is there a way to convert a quaternion to a vector?

help im trying to test somthing but i dont know how to convert them

Euler angles dont do what your asking use a vector rotate with the quaternion and the vector as x0, y0, z1