Ints are automatically converted to bool, there is no need to cast.
What this does is it restricts the int to 1 or 0. The clean way to
write this is x ? 1 : 0. This is understandable even if you don't know
the Boolean inversion of 0 is 1 (Which isn't self-evident. For example
in Basic its -1).