Structure typecast
<p>Given the following code:</p>

<pre><code>struct A_struct
{
  int x;
};

struct B_struct
{
  int y;
};

int test(A_struct some_struct)
{
  return some_struct.x;
}

B_struct B;
</code></pre>

<p>Can someone explain what kind of typecasting this is?</p>

<pre><code>test((A_struct&amp;)B);
</code></pre>

<p>Is this essentially equivalent to:</p>

<pre><code>test(*(A_struct*)&amp;B);
</code></pre>

<p>I'm mainly curious in how they are equivalent, since I'm having trouble finding any text that bridges the gap.</p>
