original_string: public function asTagged(): TaggedType
      {
          if (!$this->_element instanceof TaggedType) {
              throw new \UnexpectedValueException(
                  "Tagged element expected, got " . $this->_typeDescriptorString());
          }
          return $this->_element;
      }
code: public function asTagged(): TaggedType
      {
          if (!$this->_element instanceof TaggedType) {
              throw new \UnexpectedValueException(
                  "Tagged element expected, got " . $this->_typeDescriptorString());
          }
          return $this->_element;
      }
code_tokens: public function asTagged ( ) : TaggedType { if ( ! $ this -> _element instanceof TaggedType ) { throw new \ UnexpectedValueException ( "Tagged element expected, got " . $ this -> _typeDescriptorString ( ) ) ; } return $ this -> _element ; }
docstring: Get the wrapped element as a context specific tagged type.
  
  @throws \UnexpectedValueException If the element is not tagged
  @return TaggedType
docstring_tokens: Get the wrapped element as a context specific tagged type .