Casting primary field value to string