title: "Cast" to int in Python 3.4
body: <p>I am writing some simple game in Python 3.4. I am totally new in Python. Code below: </p>
  
  <pre><code>def shapeAt(self, x, y):
      return self.board[(y * Board.BoardWidth) + x]
  </code></pre>
  
  <p>Throws an error:</p>
  
  <pre><code>TypeError: list indices must be integers, not float
  </code></pre>
  
  <p>For now I have found that this may happen when Python "thinks" that list argument is not an  integer. Do you have any idea how to fix that?</p>