title: Better way to convert an int to a boolean
body: <p>The input <code>int</code> value only consist out of 1 or 0.
  I can solve the problem by writing a <code>if else</code> statement.</p>
  
  <p>Isn't there a way to cast the <code>int</code> into a <code>boolean</code>?</p>