title: Deserializing an object using the Type object throws a compilation error
body: <p>I am trying to deserialize an object from the database, the object is stored in a column as a json and then de-serialized, the thing is that I am trying to make a generic method and to achieve that, so I also store in a column the deserialization type.</p>
  
  <p>So what I want to do is to get the type through <code>Type.GetType("mytype")</code> and pass that type to a method where it is essential that you pass the type.</p>
  
  <p>The problem is that for some reason visual studio does not understand this systax and highlights it as an error, or maybe I am using a bad approach, what I do is : </p>
  
  <pre><code>string toDeserialize = "jsonObject";
  JsonConvert.DeserializeObject&lt;Type.GetType("customType")&gt;(toDeserialize);
  </code></pre>
  
  <p>And the error that visual studio throws is :</p>
  
  <blockquote>
    <p>Operator '&lt;' cannot be applied to operands of type 'method group' and
    'System.Type'</p>
  </blockquote>
  
  <p>What can I do to solve this?</p>