Record
LPS-51580 Simplify
LPS-51580 Apply same logic for other primitive datatypes
LPS-51580 Add validation
LPS-51580 Do not pass String when different type is expected