Error: cannot implicitly convert type 'int' to 'bool'

If integer then it shoudn’t give an error.

image