I have a type stored in C, that's a pointer to a type. type MyType = object var point = cast[ptr MyType](someCAllocFunction(sizeof(ptr MyType))) GC_ref(point) # this doesn't work, because GC_ref expects a ``ref T``, ``seq[T]``, or ``string`` Run
How can I achieve this?