asTemplateIdentifier

Casts this TemplateOrRuleReference as a TemplateIdentifier and retrieves its kotlin.String value. Throws an exception if the TemplateOrRuleReference is not a TemplateIdentifier.