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