MSVC helpfully provides warning C4310: cast truncates constant value

Change-Id: I985216d7bade6cbb3a037b07fe44438543d63ba0