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