coverity#705090 Unchecked dynamic_cast

Change-Id: I4cd2dcd457c8f41c1c7fd82e2c99d056cf2a8c37