title: How to cast with GSON
body: <p>Is there the way to cast a string value within json to an int-, long- or double-member using GSON?</p>
  
  <p>What I mean, I have a json string, something like this:</p>
  
  <pre><code>{'timestamp':'1243274283728', 'distanse':'122.1'}
  </code></pre>
  
  <p>And I want to map this json string to object of following class:</p>
  
  <pre><code>public class TestClass
  {
     public long timestamp;
     public double distance;
  }
  </code></pre>
  
  <p>Thank you in advance</p>