title: difference between (int) and convert.toint32 in c#
body: <p>when i convert a object to int by </p>
  
  <pre><code>(int)object
  </code></pre>
  
  <p>then when the object value is 0 then he give me error that specific cast not valid.</p>
  
  <p>when i convert a object to int by</p>
  
  <pre><code>convert.toint32(object)
  </code></pre>
  
  <p>then he works and give me 0  means cast is valid.</p>
  
  <p>and i want to know that what is difference between both. </p>
  
  <pre><code>1. (int)object
  2.convert.toint32(object)
  </code></pre>