public function asReal(): Primitive\Real
    {
        if (!$this->_element instanceof Primitive\Real) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_REAL));
        }
        return $this->_element;
    }
public function asReal(): Primitive\Real
    {
        if (!$this->_element instanceof Primitive\Real) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_REAL));
        }
        return $this->_element;
    }
public function asReal ( ) : Primitive \ Real { if ( ! $ this -> _element instanceof Primitive \ Real ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_REAL ) ) ; } return $ this -> _element ; }
Get the wrapped element as a real type.

@throws \UnexpectedValueException If the element is not a real
@return \ASN1\Type\Primitive\Real
Get the wrapped element as a real type .