<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The rubber-duckie effect strikes again! A few minutes after posting about my problem I figured out the answer:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Consolas;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">withUnsafeMutablePointer</span><span style="font-variant-ligatures: no-common-ligatures" class="">(&amp;keyHandles[</span><span style="font-variant-ligatures: no-common-ligatures; color: #424242" class="">0</span><span style="font-variant-ligatures: no-common-ligatures" class="">]) { keysPtr </span><span style="font-variant-ligatures: no-common-ligatures; color: #005493" class="">in</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Consolas;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-variant-ligatures: no-common-ligatures; color: #80257f" class="">opt</span><span style="font-variant-ligatures: no-common-ligatures" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #80257f" class="">keys</span><span style="font-variant-ligatures: no-common-ligatures" class=""> = keysPtr</span></div></div><div class=""><div class="" style="font-family: Consolas; font-size: 12px; margin: 0px; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DoSomethingWith(opt)</span></div></div><div class="" style="font-family: Consolas; font-size: 12px; margin: 0px; line-height: normal;"><span class="" style="font-variant-ligatures: no-common-ligatures;">&nbsp; &nbsp; &nbsp; &nbsp; }</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="">—Jens</div></body></html>