Do not rely on implicit conversion from integer to bool
Merge pull request #4116 from yebblies/intbool

[DDMD] Do not rely on implicit conversion from integer to bool