Fix MSVC C4800: 'type' forcing value to bool 'true' or 'false'