Fixed int->bool conversion warning on MSVC

MSVC issues a level 3 warning C4800: "'type' : forcing value to bool 'true' or 'false' (performance warning)"
http://msdn.microsoft.com/en-us/library/b6801kcy.aspx