title: Converting Json.Net JValue to int
body: <p>I've tried:</p>
  
  <pre><code>JValue myJValue = getJValue(someVar);
  int storedValue = JsonConvert.DeserializeObject(myJValue);
  </code></pre>
  
  <p>But this only seems to be valid for JObjects. Is there a way to get the integer from a JValue? </p>