Numpy Cannot cast ufunc multiply output from dtype
<p>I'd like to multiply an <code>int16</code> array but a <code>float</code> array, with auto rounding, but this fails :</p>

<pre><code>import numpy

A = numpy.array([1, 2, 3, 4], dtype=numpy.int16)
B = numpy.array([0.5, 2.1, 3, 4], dtype=numpy.float64)

A *= B
</code></pre>

<p>I get: </p>

<blockquote>
  <p>TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('int16') with casting rule 'same_kind'</p>
</blockquote>