Creating mouseJoints in C++ not AS3 someone please.

I cannot create a mouseJoint at all in C++, my line of code is as follows.
Code:
myMouse.mouseJoint = myWorld.world->CreateJoint(&myMouse.mouseJointDef);

This however gives me this error:
Code:
error C2440: '=' : cannot convert from 'b2Joint *' to 'b2MouseJoint *'

Well there is no CreateMouseJoint instead of the CreateJoint, so how do I get past this part anyone?
I figured it out by doing (b2MouseJoint*) before myWorld.

Original thread: https://box2d.org/forum/viewtopic.php?t=4586