Expression Node Result in different type?
The expression node can output any type you want. When you click on the little gear icon you can also change the socket type of the output.

However not all python modules can be used by default. To use other modules like mathutils you have to enable them before. This can be done in the advanced settings like in the image below.