this != 0
import checkedint.throws : SafeInt; // use IntFlagPolicy.throws SafeInt!int n = -315; assert( cast(bool)n); n = 0; assert(!cast(bool)n);
See Implementation
this != 0