coverity#735840 Unchecked dynamic_cast

Change-Id: I3c772ec30360103f569b34e7c83f65b469eb5be8