Remove invalid and unnecessary downcast

Change-Id: I2c4daa7057a4faf020b96b587c7a8348adeaeb58