title: Entity cannot be cast to java.lang.Object;
body: <pre><code>com.envers.DuaVO@5d8a2977
  Exception in thread "main" java.lang.ClassCastException: com.envers.DuaVO cannot be cast to [Ljava.lang.Object;
  </code></pre>
  
  <p>I'm getting the above exception when I run the code. What am I missing here? Any help would be appreciated.</p>
  
  <pre><code>for (Object[] revtypes : duaRevType) {
          System.out.println("  ");
          System.out.println(revtypes[0]);
  
          //Printing Out DUA Values
          Object[] objArray = (Object[]) revtypes[0];
          DuaVO dduaVo = (DuaVO) objArray[0];
  
          System.out.println("Dua Number: " + dduaVo.getDuaNumber());
          System.out.println("Dua Short Description: " + dduaVo.getDuaShortDesc());
  
          System.out.println("This DUA was modified on: " + revtypes[1]);
          System.out.println("Revision Type: " + revtypes[2]);
  </code></pre>
  
  <p>// Console Output</p>
  
  <pre><code>    com.envers.DuaVO@2d4c8822  // I'm trying to print this object
    This DUA was modified on: DefaultRevisionEntity(id = 499,     revisionDate   Mar 16, 2015 11:36:38 AM)
    Revision Type: ADD
  </code></pre>