cast primary-key value with field before sending to database.

Needed when UUID column type is used as primary key
Test UUID support