Fixed casting to wrong type; copy-paste error

Change-Id: I07af9735186b089877fe925bceafabb7ae6aa92e