Alternative to void * pointer in my project

Thanks for the info. I am just thinking if I do a Parent-Derived relationship with my sequence. I would still need to cast the code somewhere right?

This is a pseudocode

Sequence *currentSequence;

if (command == "Move Motor")
(MoveMotorSequence)currentSequence
else
(MoveFeederSequence)currentSequence

Somewhere, along the loop.. If I have multiple sequences then I still need to do a bunch of if else and typecasting?