title: Why cannot cast Integer to String in java?
body: <p>I found some strange exception:</p>
  
  <pre><code>java.lang.ClassCastException: java.lang.Integer 
   cannot be cast to java.lang.String
  </code></pre>
  
  <p>How it can be possible? Each object can be casted to String, doesn't it?</p>
  
  <p>The code is:</p>
  
  <pre><code>String myString = (String) myIntegerObject;
  </code></pre>
  
  <p>Thanks.</p>