coverity#1194901 Unchecked dynamic_cast

Change-Id: I63f91359f4232c5897de77905b3375e9c2f30d2e
coverity#1194902 Unchecked dynamic_cast

Change-Id: I7a7c8d365e9f90096c98120e448a5571ca5e54a5