Casting

Types can be converted, making it easy to create, concatenate and combine Inspectors into complex Relevance expressions.

Q: "01 Apr 2020" as date
A: Wed, 01 Apr 2020

Converts (casts) a string into a date type.

Q: 5 as month
A: May

Converts an integer into the corresponding month type.

Q: january as three letters
A: Jan

Converts the month January into a three-letter abbreviation.

The Fixlet Debugger casts values to strings in order to print them. If an object does not result in a string, the debugger uses the ‘as string’ method of the object to turn it into a string. If the object can’t be cast as a string, an error message is displayed.