Safe typecasting inside return
<p>Inside my code I am typecasting a variable before I return it (C++).</p>

<p>Is it safe to do so, or should I typecast first and then return the value?</p>

<p>Currently :</p>

<pre><code>return NumericType (r_endoftheScale);
</code></pre>

<p>Or should I change it to </p>

<pre><code>NumericType r_endoftheScale;
r_endoftheScale=NumericType (w_endoftheScale);
return r_endoftheScale;
</code></pre>
