title: How to put(String, List<MyObject>) into a Map<String, List<Object>>
body: <p>I have a map of <code>&lt;String, Lists&gt;</code>, but the entries have lists of different types.</p>
  
  <p>So the first entry might be <code>put("cars", List&lt;Cars&gt;)</code>, and the second entry might be <code>put("bikes", List&lt;Bikes&gt;)</code>.</p>
  
  <p>I declared a <code>Map&lt;String, List&lt;Object&gt;&gt; myVehicles</code> to hold this. When I try to put the entries in:</p>
  
  <pre><code>List&lt;Bikes&gt; bikes = ...
  myVehicles.put("bikes", (List&lt;Object&gt;)bikes);
  </code></pre>
  
  <p>I get an error, "Can't cast from List to List". What do I need to do? Thanks.</p>