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

@throws \UnexpectedValueException If the element is not tagged
@return TaggedType
Get the wrapped element as a context specific tagged type .