Error: Specified cast is not valid while converting decimal to double
<p>I have a function as under</p>

<pre><code>private double RoundOff(object value)

    {
        return Math.Round((double)value, 2);
    }
</code></pre>

<p>And I am invoking it as under</p>

<pre><code>decimal  dec = 32.464762931906M;
var res = RoundOff(dec);
</code></pre>

<p>I am gettingthe below error</p>

<p><strong>Specified cast is not valid</strong></p>

<p>What is the mistake?</p>

<p>Thanks</p>
