title: Checking if a Bool is Equal to an Integer
body: <p>Ok, so I'm working for a company and before I was hired the company had a guy writing a program in Visual Basic. However, he got mad and ran off so I cannot communicate with him. My job is to convert his program to C#. He has no formal programming training so there are no comments in his code at all. In his code he has the following line (Written in C#):</p>
  
  <pre><code>if (boolVariable == 13)
  </code></pre>
  
  <p>I'm assuming I should just convert the int to bool or vice versa, but  I figured I would ask you guys first. To give you more information, the boolVariable is only referenced in two other places. The declaration where it is being set to false, and in another if statement checking if it is true. No where else in the code is it being defined to something else, so I'm think that this just might be useless code. However, this piece of code does not cause an error in Visual Basics which also has me a little confused. Does visual basics automatically convert it for you? Any help will be greatly appreciated.</p>