title: Cython: Convert memory view to NumPy array
body: <p>How to convert a typed memoryview to an NumPy array in cython? The docs have</p>
  
  <pre><code>cimport numpy as np
  import numpy as np
  
  numpy_array = np.asarray(&lt;np.int32_t[:10, :10]&gt; my_pointer)
  </code></pre>
  
  <p>I took this for my case</p>
  
  <pre><code>np.asarray(&lt;np.float_t[:, :]&gt; my_memview)
  </code></pre>
  
  <p>Using this the compiler tells me:</p>
  
  <pre><code>Can only create cython.array from pointer or array
  </code></pre>
  
  <p>Copying or not is not so decicive. I couldn't find any help on this.</p>