Tiny cast change that fixes compile errors on my machine.

RB=184100
R=gogenc,jbetz,si-dev
A=gogenc