Any Methods

The methods defined in the Any primitive type are summarized in the following table.

Method Returns …
asString A string representing the value of a primitive type or the object id of an object reference
display The string "Any"
getName A string representing the value of a primitive type or the name of the receiver class if it is an object reference
getType The type of the value that is assigned to the receiver
isIntegral true if the receiver can be type‑converted to an Integer primitive type without any loss of data
isIntegral64 true if the receiver can be type‑converted to an Integer64 primitive type without any loss of data
isKindOf true if the type of the receiver is of the type specified by the type parameter
isNumericType true if the type of the value assigned to the receiver is a Decimal, Integer, Integer64, or Real primitive type
isTextType true if the type of the value assigned to the receiver is a Character, String, or StringUtf8 primitive type