This just does the same thing as the _in function, except it has to handle a 'text' input.
First, unwrap the text into a cstring, then do as tpoint_in