Updates to pointer conversion in swift