This looks like a julia bug, unless JString <: String (but I guess it isn't?).
The method from Base is the generic identity conversion, but it seems to me that your method can never be an identity conversion?
This looks like a julia bug, unless JString <: String (but I guess it isn't?).
The method from Base is the generic identity conversion, but it seems to me that your method can never be an identity conversion?