title: Java HashMap<String, String> has LinkedHashMap in value
body: <p>So I have a strange issue with a <code>HashMap</code> and not sure how to access the value. I have a <code>HashMap</code> returned to me from an API that is suppose to be <code>HashMap&lt;String, String&gt;</code>. One of the values is actually a <code>LinkedHashMap</code>. I've tried casting it, but since it is a <code>HashMap</code> that is <code>&lt;String, String&gt;</code> it's giving me an error that it's not possible. Is there anyway to get a <code>LinkedHashMap</code> value out of a <code>HashMap</code> that is <code>&lt;String, String&gt;</code>?</p>
  
  <p>I have tried this with no luck: <code>((HashMap)userInfo.get("key")).get("key");</code></p>
  
  <pre><code>     Could not complete request &lt;java.lang.ClassCastException: 
  java.util.LinkedHashMap cannot be cast to java.lang.String&gt;java.lang.ClassCastException:
  </code></pre>
  
  <p>java.util.LinkedHashMap cannot be cast to java.lang.String</p>
  
  <p>This is really ugly looking, but I was actually able to get it out of the HashMap with this:</p>
  
  <pre><code>(HashMap) ((HashMap)((HashMap)userInfo).get("picture")).get("data");
  </code></pre>
  
  <p>Thanks to Jeroen for sending me down the right path. </p>