dynamic casting w/0 exception handling is useless.
changing the cast to a static cast allows to keep using the -frtti flag and thus better code optimization.