asBoolean

Casts this AttributeValue as a Boolean and retrieves its kotlin.Boolean value. Throws an exception if the AttributeValue is not a Boolean.