> it seems nim won't let you politely cast cstring to string.
>From the doc A $ proc is defined for cstrings that returns a string. Thus to get a nim string from a cstring: var str: string = "Hello!" var cstr: cstring = str var newstr: string = $cstr