Fix int to bool casting

Incorrect behavior on non-x64 platforms. See discussion: http://www.bignerdranch.com/blog/bools-sharp-corners/