[This question is related to but not the same as this one.]
My compiler warns about implicitly converting or casting certain types to bool whereas explicit
I don't think performance is the issue here. The reason you get a warning is that information is lost during conversion from int to bool.