title: Implement Hashmap with different value types in Kotlin
body: <p>Is it possible to have a hashmap in Kotlin that takes different value types?</p>
  
  <p>I've tried this:</p>
  
  <pre><code>val template = "Hello {{world}} - {{count}} - {{tf}}"
  
  val context = HashMap&lt;String, Object&gt;()
  context.put("world", "John")
  context.put("count", 1)
  context.put("tf", true)
  </code></pre>
  
  <p>... but that gives me a type mismatch (apparantly <code>"John"</code>, <code>1</code> and <code>true</code> are not Objects) </p>
  
  <p>In Java you can get around this by creating types <code>new String("John")</code>, <code>new Integer(1)</code>, <code>Boolean.TRUE</code>, I've tried the equivalent in Kotlin, but still getting the type mismatch error.</p>
  
  <pre><code>context.put("tf", Boolean(true))
  </code></pre>
  
  <p>Any ideas?</p>