def quatToConfig(quat):
    """
    Shape a pinocchio.Quaternion as a list
    :param quat: A Quaternion object
    :return: a list containing the quaternion values (x, y, z, w)
    """
    return [quat.x, quat.y, quat.z, quat.w]