See MComponent::downCast() for a detailed explanation and example.
static MEvent * downCast(MEvent* pMEvent);