Warning C4800: ‘int’ : forcing value to bool ‘true’ or ‘false’ (performance warning)
FYI: Casts won’t hide the warning by design. Something like return (id & MID_NUMBER) != 0; should clearly state “I want to check whether this value is zero or not” and let the compiler be happy