how to parse or convert
<p>Is there easyer way to parse in c# then this:</p>

<pre><code>float temp;
if (float.TryParse(quantity.ToString(), out temp))
{
     noteProduct.Quantity = temp;
}
</code></pre>

<p>Thanks</p>
