I am currently writing a ccall binding for the ChakraCore JavaScript engine and there is one function with this definition:
CHAKRA_API JsStringToPointer(
    _In_ JsValueRef stringValue,
    _Outptr_result_buffer_(*stringLength) const WCHAR **stringPtr,
    _Out_ size_t *stringLength
)
So I create a Ref to a WCHAR via: resultWC = Ref{Cwstring}()
I tried a bunch of convert functions to get a String back, but nothing worked yet. I guess I need this: https://docs.julialang.org/en/v0.6.1/stdlib/strings/#Base.transcode
But Base.transcode wants a Vector/Array and I don't know how to do simple C-style casting in Julia for this case.
Any ideas how to turn a Ref{Cwstring}() into a String?
                        
You're right, it's a problem.
Until that is fixed, you can add your own method:
Then you can just call it by