Work on issue #1
dataptr function now works for other types than real