coverity#735766 Unchecked dynamic_cast

Change-Id: I7f69e2a9d83d4632a23c6b1b15156b8e084487e2