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