title: TA-Lib numpy "AssertionError: real is not double"
body: <p>I have AssertionError using TA-Lib wrapper in python.  Could you take a look at my code? I really appreciate your help.</p>
  
  <pre><code>import numpy as np
  import talib
  
  #This works
  test_data = np.random.random(5)
  np_out = talib.SMA(test_data,3)
  print np_out
  
  #How come this does not work?  I need to fix
  real_data = [135.01, 133.0, 134.0, 131.0, 133.0, 131.0]
  np_real_data = np.array(real_data,dtype=np.object)
  np_out = talib.SMA(np_real_data,3)
  print np_out
  </code></pre>
  
  <p>error message:</p>
  
  <pre><code>  File "func.pyx", line 9200, in talib.func.SMA (talib/func.c:85610)
  AssertionError: real is not double
  </code></pre>
  
  <p>I suspet the solution might be to convert double to real. I want to test that idea. How do I convert the real_data from double to real?</p>
  
  <p>Thanks.</p>