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