asDuration

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