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

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