get userdata instance

I have some methods to update the drawing for an actor in Actor

//Initialize
body->m_userData = new Actor(x,y);

//updates

I tried:
b2Vec2 postn = shape->m_position;
body->m_userData->update(postn.x,postn.y);

error C2227: left of '->update' must point to class/struct/union/generic type type is 'void *'

Anybody can help me with this?
Box2D can't know what kind of userdata you will be storing, thus it needs to store a void* pointer to it. You need to cast the userdata to the type you're using:

Actor *actor = (Actor*)body->m_userData;
actor->update(postn.x,postn.y);

Or just:

((Actor*)body->m_userData)->update(postn.x,postn.y);

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