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

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