coverity#735940 Unchecked dynamic_cast

Change-Id: Ic5acb9afd69dda3fc630a438324ef692950ff2de
coverity#735942 Unchecked dynamic_cast

Change-Id: Id508e771b0f117437671f40060c68122a408e386