There is a 2 ways to go.
- Simply swap Y <-> Z components of quaternion or rotation matrix.
- Build transformation from one Basis to other and multiply current transformation. Transformation changing coordinate axes can be described with 4x4 matrix or 3x3 if only rotation used