title: Convert Kotlin MutableMap to java.util.HashMap
body: <p>I am working with a pretty old project that has a lot of java code in it, and to replace it, it will be too much of a hassle, and as kotlin is much better than java, I'm trying to coed all the new code in kotlin, but when I try to access a java code with this kotlin code</p>
  
  <pre><code>val params = mutableMapOf&lt;String, String&gt;(
      "name" to response.name,
      "type" to response.type
  )
  product.params = params
  </code></pre>
  
  <p>I got a red underline below the <code>params</code>, it said</p>
  
  <pre><code>Required: Hashmap&lt;String!, Any!&gt;!
  Found: MutableMap&lt;String, String&gt;
  </code></pre>
  
  <p>This is my java setter</p>
  
  <pre><code>public void setParams(HashMap&lt;String, Object&gt; params){
      this.params = params;
  }
  </code></pre>
  
  <p>Can I fix this without changing the java code? Please help if it is possible, or if it is not, and what is the workaround to fix this.</p>