Fix implicit conversion to bool
Merge pull request #3563 from yebblies/boolconvx

[DDMD] Fix implicit conversion to bool