Use `== 0` instead of `as bool`
Merge pull request #92 from jsanders/fix_as_bool

Use `== 0` instead of `as bool`