Re-add int casts dropped at 3960f6061ac4a7a54d96153613b10efc072a6eee (#170)

This is meant to address warning C4244.

> C4244: '=' : conversion from '__int64' to 'int', possible loss of data
> C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data
1 file changed