title: How to convert neo4j return types to python types
body: <p>I am using py2neo and I would like to extract the information from query returns so that I can do stuff with it in python. For example, I have a DB containing three "Person" nodes:</p>
  
  <p><code>for num in graph.cypher.execute("MATCH (p:Person) RETURN count(*)"):
       print num</code></p>
  
  <p>outputs:</p>
  
  <p><code>&gt;&gt; count(*)</code></p>
  
  <p><code>3</code></p>
  
  <p>Sorry for shitty formatting, it looks essentially the same as a mysql output. However, I would like to use the number 3 for computations, but it has type <code>py2neo.cypher.core.Record</code>. How can I convert this to a python int so that I can use it? In a more general sense, how should I go about processing cypher queries so that the data I get back can be used in Python?</p>