Newtype unwrapping in the FFI