Call as_ptr later on

Potential issue could occur when the CString was freed before the pointer usage