Change type of objid to text