coverity#735764 Unchecked dynamic_cast

Change-Id: Ic7dc70c1052f5ab04a3e1795549ca43e2e0f2587