Get rid of dynamic_cast