title: Convert Object to int without rounding
body: <p>I have to convert an object to int. My object values is something like 1.34535
  What I need is the first part which is (1).</p>
  
  <p>I tried the followings:
  - <code>Convert.ToInt32(myObj.Value)</code>, it rounds the number. if it's <code>1.78</code>, I got it (2) which is wrong. I need only the integer of first part.</p>
  
  <ul>
  <li><p><code>int.TryParse(myObj.Value.toString(), out outValue)</code>
  I got it <code>0</code> for all values!</p></li>
  <li><p><code>int.Parse(myObj.Value.toString())</code> throws an exception, that is in incorrect format.</p></li>
  </ul>