The object's mcobjTypeEnum ID is returned as a LONG. If you want the type name, pass the mcobjTypeEnum ID to McObjects.TypeNameOrID. If this object is an Alias, the returned ID will have the mcobjTypeFlagAlias OR'ed with the rest of the type ID number. Data-type objects (e.g., mcobjTypeINTEGER or mcobjTypeREAL) will have the mcobjTypeFlagData OR'ed with the rest of the number. Use mcobjTypeIDMask to isolate just the Type ID number (see Examples).
As illustrated in the example, an Alias-type object without a ShadowMcObject attached will have a Type property value equal to mcobjTypeFlagAlias.