title: How to extract HashMap from Bundle without cast?
body: <p>Communicating between two threads, I use a Message, transporting the data. In my case, a HashMap. Now on reconstructing the data, I get a warning about an unchecked type cast. That would imply to me (as java noob), that I shouldn't do that cast at all, right? But what would be the correct way to get the HashMap out of the bundle?</p>
  
  <pre><code>    Bundle dataBundle = msg.getData();
  Serializable result = dataBundle.getSerializable("data");
  HashMap&lt;String,String&gt; output = (HashMap&lt;String, String&gt;) result;
  </code></pre>
  
  <p>Thanx for any pointers!
  Marcus</p>