[BACKLOG-1498] Auto-convert Strings to primitive types if applicable