Do not rely on implicit conversion of int to bool
Merge pull request #3953 from yebblies/impbool

[DDMD] Do not rely on implicit conversion of int to bool