Returns this type as a TypeInfo.
type
TypeInfo? get typeInfo { var self = this; return self?.typeInfo; }