title: Casting an object to a reference?
body: <p>I've been reading some OSS code lately and stumbled upon this peculiar piece:</p>
  
  <pre><code>class Foo { ..... };
  void bar() {
      Foo x;
     Foo *y=new Foo();
     x=(const Foo &amp;) *y;
  }
  </code></pre>
  
  <p>For the life of me I can't find documentation about the behavior of casting an object to a const reference.</p>