make the cast from int to bool explicit to prevent a warning

MSVC (12, 14) issues a warning for this implicit cast from int to bool