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