public function asSequence(): Constructed\Sequence
    {
        if (!$this->_element instanceof Constructed\Sequence) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_SEQUENCE));
        }
        return $this->_element;
    }
public function asSequence(): Constructed\Sequence
    {
        if (!$this->_element instanceof Constructed\Sequence) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_SEQUENCE));
        }
        return $this->_element;
    }
public function asSequence ( ) : Constructed \ Sequence { if ( ! $ this -> _element instanceof Constructed \ Sequence ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_SEQUENCE ) ) ; } return $ this -> _element ; }
Get the wrapped element as a sequence type.

@throws \UnexpectedValueException If the element is not a sequence
@return \ASN1\Type\Constructed\Sequence
Get the wrapped element as a sequence type .