Switch Matrix from y-UP to z-Up

I suggest you study the conversation in: Convert from one coordinate system to another?

Note that also the handedness is important (left vs. right). You should find ready-to-use code for the conversion from right-handed Z-up to right-handed Y-up here.

By inverting the change-of-basis matrix, you should be able to perform the opposed operation.