Featurescript: type checking

Just a quickie, I can find an isInteger function and an isReal function (with bounds) but it seems they are more for 'features' rather than programming. Is there a way when parsing an array to check what data type each element is, i.e. isBox, isArray, isString etc?

A word of caution as well. Types have hierarchy and all non-builtin types (UpperCaseTypes) are built on top of builtin types (lowercasetypes). Two specific examples are that a Vector is actually just a special array, and a ValueWithUnits is just a special map.

So if you do:

if (item is Vector)
{
...
}
else if (item is array)
{
...
}

or

if (item is map)
{
...
}
else if (item is ValueWithUnits)
{
...
}

you will never actually hit the second block of execution.

To check what builtin type a certain Type is based on you can search the standard library for `export type <TypeYouAreCuriousAbout>`: