title: Convert Object arrayList object to Integer
body: <p>I have created an ArrayList of Object and it contains both Integer and String.</p>
  
  <pre><code>List&lt;Object&gt; arrayList = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>Using the below condition I have checked whether it is integer or not</p>
  
  <pre><code>if(arrayList.get(indexValue) instanceof Integer){
   // Here how convert the object into integer
  }
  </code></pre>
  
  <p>But the problem is, how can I convert the object into integer ?</p>
  
  <p>Thanks</p>