title: trying to change string -> int
body: <p>I'm trying to use javascript to change a <code>string</code> to an <code>int</code>.</p>
  
  <pre><code>var intVal = gSpread1.Text * 1;
  </code></pre>
  
  <p>I want <code>intVal</code>'s Type to be <code>int</code>.</p>
  
  <p>I can get an int value, if <code>gSpread1.Text</code> is smaller than 1000.</p>
  
  <p>But if <code>gSpread1.Text</code> is larger than 1000, <code>intVal</code> returns <code>NaN</code></p>
  
  <p>What is the correct way to use <code>ParseInt</code> to ensure that it always returns an <code>int</code> value?</p>