Switch from manage C pointer to owning a copy