title: How to convert/cast HashMap to LinkedHashMap?
body: <p>I'm using <a href="https://github.com/orhanobut/hawk" rel="noreferrer">Hawk</a> as a replacement for <code>SharedPreferences</code> in my application.</p>
  
  <p>I'm trying to store a <code>LinkedHashMap</code> in it, but for some reason when I pull it back from <strong>Hawk</strong> it returns as a regular <code>HashMap</code> and not a <code>LinkedHashMap</code>. At this point I crash with a <code>ClassCastException</code> as <code>HashMap</code> can't be casted to <code>LinkedHashMap</code> straight forward.</p>
  
  <p>So the question is how can I convert the returned <code>HashMap</code> to be a <code>LinkedHashMap</code>?</p>