Casting return type
<p>Does casting a variable to another type return a temporary copy of that variable? if so then why can't you reference the temporary variable to a function.</p>

<pre><code>void func(int &amp;i) //error converting parameter 1 from int to int&amp;
{
}

int main()
{
    double d = 6.8;
    func(int(d));
}
</code></pre>
