title: Get the address of an Objective-c property (which is a C struct)
body: <p>I have an Objective-C class which contains a C-style struct.  I need to call a C function passing a pointer to this object member (a.k.a. property).  For the life of me, I can't figure out how to get the address of this C struct.  Using the traditional <code>&amp;</code> operator to get the address, I'm getting an LValue compiler error.</p>
  
  <pre><code>typedef struct _myStruct
  {
     int aNumber;
  }MyStruct, *pMyStruct;
  
  @interface MyClass : NSObject {
      MyStruct mystruct;
  }
  @property (readwrite) MyStruct myStruct;
  @end
  </code></pre>
  
  <p>The following code results in a compiler error:</p>
  
  <pre><code>MyClass* myClass = [[MyClass alloc] init];
  
  MyStruct* p = &amp;(myClass.myStruct);
  </code></pre>
  
  <p>How do I get a pointer to the <code>myStruct</code> member of the <code>myClass</code> object?</p>