title: Cast Double to Integer in Java
body: <p>Any way to cast <code>java.lang.Double</code> to <code>java.lang.Integer</code>? </p>
  
  <p>It throws an exception </p>
  
  <blockquote>
    <p>"java.lang.ClassCastException: java.lang.Double incompatible with java.lang.Integer"</p>
  </blockquote>