`(int)null === 0` so yes that is the intended behavior and there is no need for special handling (that's why I put the type cast there)