When you create bodies, set something meaningful for userdata, but be consistent :) Good advice is to always have the same type and data type there, object identifier or actor link.
:
b2BodyDef bodyDef;
bodyDef.userData = &myActor;
, , b2Body - .
docs:
b2Fixture* fixtureA = myContact->GetFixtureA();
b2Body* bodyA = fixtureA->GetBody();
MyActor* actorA = (MyActor*)bodyA->GetUserData();
/ , ... actorA.explode().
, , . , , . , - .