title: How to know if json can convert to a given type
body: <p>The json <code>token.ToObject&lt;T&gt;</code> method can throw if json is not able to convert the data in token the to the type <code>T</code>.</p>
  
  <p>I would like to do a early test and need a method like this:</p>
  
  <pre><code>bool JsonConvert.CanConvert&lt;TSrc, TDest&gt;();
  </code></pre>
  
  <p>I don't find any reference to something close to it.</p>
  
  <p><strong>[Precision]</strong></p>
  
  <p>Actually <code>TSrc</code> here is not composed but a basic type.</p>
  
  <p><strong>[Edit]</strong></p>
  
  <p>When I say that I want to do an early test, I talk about a test done <strong>before</strong> any attempt to parse somethings.</p>
  
  <p>Actually I don't have any json file around when I need to do the test.</p>
  
  <p>So the <a href="https://stackoverflow.com/questions/23906220/deserialize-json-in-a-tryparse-way">TryParse</a> or the <a href="https://stackoverflow.com/a/40846833/361177">TryCatch</a> pattern doesn't match my need.</p>