<p dir="auto">TOSTRING() fails in cases where STR() worked</p>
<p dir="auto"><strong>Neo4j Version:</strong> 2.3.1<br>
<strong>Operating System:</strong> Ubuntu 14.10</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">I have an collection of arrays</p>
<p dir="auto">`Collect([TOINT(idn),STR(name),TOINT(status),TOINT(days_norm),TOINT(days_spent)]) as flowsteps``</p>
<p dir="auto">This</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + TOINT(STR(i[3]))) as normP</code></p>
<p dir="auto">works, but this</p>
<p dir="auto">REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP`</p>
<p dir="auto">throws an error</p>
<p dir="auto"><code class="notranslate">Cypher error: Type mismatch: expected Float, Integer or String but was Any (line 33, column 57 (offset: 1271)) " REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP</code></p>
<p dir="auto">Same error can be observed when running this:</p>
<p dir="auto">`UNWIND [1,"12",37,"27654"] as elt RETURN toString(elt)``</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">TOSTRING() should accept Any, like STR() dis</p>
<p dir="auto"><strong>Neo4j Version:</strong> 2.3.1<br>
<strong>Operating System:</strong> Ubuntu 14.10</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Creating a collection of collections, e.g.</p>
<p dir="auto"><code class="notranslate">Collect([TOINT(idn),STR(name),TOINT(status),TOINT(days_norm),TOINT(days_spent)]) as flowsteps</code></p>
<p dir="auto">and later on adding up corresponding items</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + TOINT(STRING(i[3]))) as normP</code></p>
<p dir="auto">throws an error</p>
<p dir="auto"><code class="notranslate">Cypher error: Type mismatch: expected Float, Integer or String but was Any (line 33, column 57 (offset: 1271)) " REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP</code></p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">If I cast something WITH TOINT(), then this should work:</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + i[3]) as normP</code></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Only works with a workaround  by TOINT(STR()), which is no longer works in 3.0, because STR() is no longer available.</p>