title: Python ctypes - TypeError: int expected instead of float
body: <p>I try to convert a python list to a ctype array. But somehow I always get the error "TypeError: int expected instead of float" in the line with this code:</p>
  
  <pre><code>    self.cValues = (ctypes.c_int * len(self.values))(*self.values)
  </code></pre>
  
  <p>I created self.values a few lines before. It's a normal python list.
  I am 100% sure, len(self.values) is an integer, I tested it with the type() function and the result was class 'int'. So what else is the problem with this line? Thanks for help.</p>