Replaced typeid usage with dynamic_cast
Replaced typeid usage with dynamic_cast

Fixes clang -Wpotentially-evaluated-expression
warning.
opoplawski/MetaIO,tjcorona/MetaIO,opoplawski/MetaIO,tjcorona/MetaIO