original_string: public function asReal(): Primitive\Real
      {
          if (!$this->_element instanceof Primitive\Real) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_REAL));
          }
          return $this->_element;
      }
code: public function asReal(): Primitive\Real
      {
          if (!$this->_element instanceof Primitive\Real) {
              throw new \UnexpectedValueException(
                  $this->_generateExceptionMessage(Element::TYPE_REAL));
          }
          return $this->_element;
      }
code_tokens: public function asReal ( ) : Primitive \ Real { if ( ! $ this -> _element instanceof Primitive \ Real ) { throw new \ UnexpectedValueException ( $ this -> _generateExceptionMessage ( Element :: TYPE_REAL ) ) ; } return $ this -> _element ; }
docstring: Get the wrapped element as a real type.
  
  @throws \UnexpectedValueException If the element is not a real
  @return \ASN1\Type\Primitive\Real
docstring_tokens: Get the wrapped element as a real type .