title: I am not able to convert int to boolean in Java in the following code
body: <pre><code>public class Typecast {
  
      public static void main(String[] args) {
          int a=0;
          boolean b=(boolean)a;
          System.out.println(b);
      }
  }
  </code></pre>
  
  <p>It gives me an error "Cannot cast from int to boolean".Can someone help?</p>