Avoid an improper use of unsafeForeignPtrToPtr