`unsafe_pointer_to_objref(::Ptr{T})` is not type stable

When you are passing pointers through C, you should just use the correct return type, e.g. Ref{Foo{Float64}} instead of using unsafe_pointer_to_objref.

5 Likes