title: Get a class from a type scala
body: <p>In scala, I want to be able to say </p>
  
  <p><code>val user = Node.create[User](...) // return User object</code></p>
  
  <p>So here's what I have so far:</p>
  
  <pre><code>def create[T : TypeTag](map: Map[String, Any]) {
      val type = typeOf[T]
      // create class from type here???
  }
  </code></pre>
  
  <p>I've been digging around how to create classes from generic types and found out that using ClassManifest seems to be deprecated. Instead, type tags are here, so I'm able to do something like this typeOf[T] and actually get the type.. but then I'm lost. If I could get the class, then I could use something like class.newInstance and manually set the fields from there.</p>
  
  <p>Question is: given a type, can I get a class instance of the given type?</p>