Smoother way to type case a decimal
<p>I have an object of type <code>Entity</code> and according to watch facility it is of type "object {decimal}". I'm converting it using the code below but I'm not really happy about the approach (first stringification, then parsing).</p>

<pre><code>double d = Double.Parse(entity["key"].ToString());
</code></pre>

<p>Is there a smoother, more recommended way to convert that value?</p>
