title: How to convert long to int in .net?
body: <p>I am developing window phone 7 application in silverlight. I am new to the window phone 7 application. I have the long value in String format as follows</p>
  
  <pre><code>String Am = AmountTextBox.Text.ToString() 
  </code></pre>
  
  <p>The AmountTextBox.Text.ToString() in the above code is long value which is in string format. I want to store a 15 digit inter value in my application.</p>
  
  <p>I found the following link for conversion.</p>
  
  <p><a href="https://stackoverflow.com/questions/858904/can-i-convert-long-to-int">Can I convert long to int?</a></p>
  
  <p>How should I convert a long value which is in string format to int ? Can you please provide me any code or link through which I can resolve the above issue ? If I am doing anything wrong then please guide me.</p>