TypeInfo.IsPrimitive

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aTypeInfo.IsPrimitive

Supported for all project types and targets.

True if the datatype represents one of the primitive data types, i.e., Boolean, String, Color, and the numeric data types.