public function asOctetString(): Primitive\OctetString
    {
        if (!$this->_element instanceof Primitive\OctetString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_OCTET_STRING));
        }
        return $this->_element;
    }
public function asOctetString(): Primitive\OctetString
    {
        if (!$this->_element instanceof Primitive\OctetString) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_OCTET_STRING));
        }
        return $this->_element;
    }
public function asOctetString ( ) : Primitive \ OctetString { if ( ! $ this -> _element instanceof Primitive \ OctetString ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_OCTET_STRING ) ) ; } return $ this -> _element ; }
Get the wrapped element as an octet string type.

@throws \UnexpectedValueException If the element is not an octet string
@return \ASN1\Type\Primitive\OctetString
Get the wrapped element as an octet string type .