Use conversion function in typemap