TContainedAction *ContAct = ActionList->Actions[i]; TAction *Act = dynamic_cast <TAction*> ContAct; if(Act) { //TODO: }