coverity#704795 Unchecked dynamic_cast

Change-Id: I8526944acfb319f3e8e1e1927e94ea44eb59f5d6
coverity#704936 Unchecked dynamic_cast

Change-Id: I92e1f95aef32a9d0431ce3fbca0a7ab6ce5cadd0