title: Get the forecasted values when using forecast() in R
body: <p>I did a forecast() in R, and I only want the forecasted values.  How can I do this? If I use <code>forecast$means</code> I get extra information instead of a usable data object like a vector.</p>
  
  <pre><code>suppressMessages(require('forecast'))
  suppressMessages(require('rjson'))
  
  # Load data. Let user choose what file they want to input.
  my_json = "[1,2,3,4,5]"
  
  my_data = fromJSON(my_json)
  
  my_df = data.frame(my_data)
  
  # Plot the decomposed time series. Let user choose their season length.
  forecasted_data = forecast(ts(my_df[,1]), h=5)
  
  print(forecasted_data$mean)
  </code></pre>
  
  <p>Current Output:</p>
  
  <pre><code>Time Series:
  Start = 6 
  End = 10 
  Frequency = 1 
  [1] 4.9999 4.9999 4.9999 4.9999 4.9999
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>[1] 4.9999 4.9999 4.9999 4.9999 4.9999
  </code></pre>