title: cannot cast String type to Object in java?
body: <p>Can I cast Object type to String?</p>
  
  <p>eg: a method <code>getResponse()</code> returns <code>Object</code> type of class <code>Request</code>.</p>
  
  <pre><code> String s1=(String)req.getResponse();
  </code></pre>