Object with dynamic type fields
<p>I need to create object with a collection of fields where every field has a specific type. (the number of fields and the types varies)
the types are "general" String, Dates, Longs, Ints, Boolean</p>

<p>I want to store values as their types to avoid castings.</p>

<p>Now I use <code>Hashmap</code> (non-generic) where the value is the object it self.</p>

<p>but hashmaps are slow and heavy (I use a lot of them).</p>

<p>What can I do?</p>

<p>Hashmap represents structure of row of  a table where every column has it's own type. I want to store the value as type of the column</p>
