usage of (object) in assigning values for hashmap
<p>I saw a piece of java code using Hashmap as follows:</p>

<pre><code>Map indata = new HashMap(12);
//load data
indata.put(“checking”, ((object) new  Double(1.0)));
indata.put(“PURPOSE”, ((object)"2”));
</code></pre>

<p>What confuse me is the two useages of "put" method, in which we have <code>((object) new  Double(1.0))
</code>  and <code>(object)"2"</code>. What do <code>(object)</code> function here? Any differences between <code>((object) new  Double(1.0))
</code>  and <code>(object)"2"</code>?</p>
