asRecord

Return this as a RecordDeclaration or throw UnsupportedOperationException.