Turning a quaterion to a vector rotation

Im trying to do this for the ray cast diraction