title: Neo4j Cypher - String to Integer
body: <p>Here the value in property r.weight is a string. i have tried following possibilities to convert it into a integer,</p>
  
  <pre><code>INT(r.weight)
  Integer.parseInt(r.weight)
  convert(INT,r.weight)
  </code></pre>
  
  <p>but nothing works. Is there a proper function to do so?</p>
  
  <p><code>reduce(total = 0, r in relationships(p): total + INT(r.weight))</code></p>
  
  <p>Note : Its not a possible duplicate of <a href="https://stackoverflow.com/questions/21314048/neo4j-convert-node-attribute-storage-from-string-to-number">Gremlin type conversion</a></p>
  
  <p>Version : 1.9.5</p>