COMP: Failed to check dynamic_cast results

Coverity reports:
Unchecked dynamic_cast
If the dynamic_cast fails, a null pointer dereference will occur; if
the dynamic_cast cannot fail, using static_cast instead offers better
performance.

Change-Id: I5ba9d18d262343f437b9a8905d2bd25e7783994f
Merge topic 'Coverity_FEMTestDynamicCast'

1c06ef18 COMP: Failed to check dynamic_cast results