How to typecast an vertex property value in AWS Neptune. Taking into account the initial type of the vertex is string, I want to convert that to Integer.
I tried some of the available resources in Stackoverflow for the typecasting as below.
g.V().values('code').map{(''+it).toInteger()}
But this is throwing error mentioning
error message : token recognition error at: 'it)'"}
It seems it is unable to parse the "it" after "+".
Is there a direct way that this could be achieved in Neptune using Gremlin.