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

yeah, it wasnt giving me the error but converting it to csharp the error appeared that’s why i am asking @Tapan_Behera1