title: How can I use Swift to call an objective-C method that expects an argument of type (int *)?
body: <p>An existing objective-C method has the following signature:</p>
  
  <pre><code>-(BOOL)barcodeSetScanBeep:(BOOL)enabled volume:(int)volume beepData:(int *)data length:(int)length error:(NSError **)error;
  </code></pre>
  
  <p>Note that <code>beepData:</code> expects (int *).</p>
  
  <p>This method can be used from objective-C by passing in a C array:</p>
  
  <pre><code>int beepData[] = {1200,100};
  </code></pre>
  
  <p>How can I call the same method from Swift? My best attempt, <code>let beepData: [Int] = [1200, 100]</code>, doesn't compile.</p>