title: Obtain textbox value from Excel in Java
body: <p>I have an Excel file and I need to read a value from a textbox inside that Excel file.</p>
  
  <p>I am using <code>org.apache.poi</code> library and I tried to obtain the value in the following way:</p>
  
  <pre><code>   List&lt;HSSFObjectData&gt; obj=workbook.getAllEmbeddedObjects();
     for (int i = 0; i &lt; obj.size(); i++) {           
         HSSFTextbox t = (HSSFTextbox) obj.get(i);
     }
  </code></pre>
  
  <p>Unfortunetly I couldn't cast <code>HSSFTextbox</code> to a <code>HSSFObjectData</code> element. </p>
  
  <p>Does anyone know how could this be done?</p>