Remove unnecessary invalid downcast

Change-Id: I53a9e864f01782cef10f2995ba90335f5c81077a