title: Several problems with the Objective-C ARC conversion
body: <p>I'm trying to convert my code to Objective-C ARC and get several errors.</p>
  
  <p>1.:</p>
  
  <pre><code>NSBezierPath *path = [NSBezierPath bezierPath];
  CGPathApply(pathRef,  path, CGPathCallback); //error
  </code></pre>
  
  <p>It says: Implicit conversion of an Objective.C pointer to 'void *' is disallowed with ARC</p>
  
  <p>2.:</p>
  
  <pre><code>static void CGPathCallback(void *info, const CGPathElement *element) {
  NSBezierPath *path = info; //error
  […] }
  </code></pre>
  
  <p>It says: Implicit conversion of a non-Objective-C pointer type 'void *' to 'NSBezierPath *' is disallowed with ARC</p>
  
  <p>Any ideas, how I can resolve the problems?</p>