Send struct refs where native code expects pointers