fix deprecation warning

When using arrays for `data` instead of strings this explicit conversion is necessary. Fixes

```jl
WARNING: convert{T}(p::Type{Ptr{T}},a::Array) is deprecated, use convert(p,pointer(a)) instead
```