title: Hashmap within a Hashmap
body: <p>I have a hashmap </p>
  
  <pre><code>Map&lt;String, Object&gt; grpFields = new HashMap&lt;String, Object&gt;();
  </code></pre>
  
  <p>which is contained within another hashmap:</p>
  
  <pre><code>Map&lt;Integer, Object&gt; targetFields = new LinkedHashMap&lt;Integer, Object&gt;();
  </code></pre>
  
  <p>I can see it within debug mode:</p>
  
  <pre><code>20005=0, 453={452-2=7, 452-0=1, 452-1=17, 448-2=81, 448-1=0A, 447-2=D, 447-1=D, 447-0=D, 448-0=0A}, 11=1116744Pq2Q,
  </code></pre>
  
  <p>where 453 is the Hashmap, however when trying to extract the hashmap from the parent hashmap using:</p>
  
  <pre><code>HashMap &lt;String, Object&gt; grpMap453 = (HashMap)targetFields.get(453);
  </code></pre>
  
  <p>I'm thrown:</p>
  
  <pre><code>java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String
  </code></pre>
  
  <p>Surely the call <code>targetFields.get(453);
  </code> should simply return a hashmap?</p>