title: Trying to read an array from Mongo and put it into a Java object
body: <p>I have an array in Mongo that I am trying to throw into a list.</p>
  
  <p>Here is what I have</p>
  
  <pre><code>BasicDBList computerList = new BasicDBList(); 
          if (dbObj.get("computers") != null){
              computerList =  (BasicDBList) dbObj.get("computers");
          }
          for (Object obj : computerList) { 
              System.getComputers().add((Computer) obj);
          }
  </code></pre>
  
  <p>I have a main <code>System</code> object that has a List in it and that is what I am doing here is trying to retrieve <code>computers</code> out of Mongo and throw back into the dataObject.</p>
  
  <p>I am getting the error</p>
  
  <pre><code>Caused by: java.lang.ClassCastException: com.mongodb.BasicDBObject cannot be cast to com.me.systems.commons.entities.Computer
  </code></pre>
  
  <p>Any ideas on what I can do?</p>
  
  <p>EDIT:
  I did obfuscate the names of the objects, but I double checked and they are consistent and accurate to the syntax.</p>