Required data types in return property values

When you specify an expression for a property value, the expression must return a value of the data type required by the property.

Object properties and their supported data types are listed by object in the Object Properties Reference. To return the value that you want in the data type required, you can convert it to the appropriate type using one of the built-in conversion functions.