Add an explicit conversion to int To avoid unsigned int overflow Change-Id: Ie070fea50b4b6c4a0e80c61371a2366dd79ed570