title: Android kotlin Object Any type mismatch
body: <p>How to assign kotlin map to java library map.
  This gives type mismatch error for Object and Any.</p>
  
  <p>I need to assign java map variable in a 3rd party java library, from my kotlin code map.</p>
  
  <pre><code>val model = JavaModel() //from 3rd party java library
  
  val params:MutableMap&lt;String, Any&gt; = HashMap()
  params.put("key","value")
  model.params = params //gives error below
  </code></pre>
  
  <p>Type mismatch: inferred type is <code>MutableMap&lt;String, Any&gt;</code> but <code>Map&lt;String, Object&gt;?</code> was expected</p>