public function asUniversalString(): Primitive\UniversalString
    {
        if (!$this->_element instanceof Primitive\UniversalString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_UNIVERSAL_STRING));
        }
        return $this->_element;
    }
public function asUniversalString(): Primitive\UniversalString
    {
        if (!$this->_element instanceof Primitive\UniversalString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_UNIVERSAL_STRING));
        }
        return $this->_element;
    }
public function asUniversalString ( ) : Primitive \ UniversalString { if ( ! $ this -> _element instanceof Primitive \ UniversalString ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_UNIVERSAL_STRING ) ) ; } return $ this -> _element ; }
Get the wrapped element as a universal string type.

@throws \UnexpectedValueException If the element is not a universal
string
@return \ASN1\Type\Primitive\UniversalString
Get the wrapped element as a universal string type .