Conversion Functions

Sometimes type information gets lost, these functions help you to coerce an "Any" value to the concrete type

apoc.convert.toString(value)

tries its best to convert the value to a string

apoc.convert.toMap(value)

tries its best to convert the value to a map

apoc.convert.toList(value)

tries its best to convert the value to a list

apoc.convert.toBoolean(value)

tries its best to convert the value to a boolean

apoc.convert.toNode(value)

tries its best to convert the value to a node

apoc.convert.toRelationship(value)

tries its best to convert the value to a relationship

apoc.convert.toSet(value)

tries its best to convert the value to a set

apoc.convert.toFloat(value)

tries its best to convert the value to a floating point value

apoc.convert.toInteger(value)

tries its best to convert the value to a integer value

apoc.convert.toIntList(value)

tries its best to convert the value to a list of integers

apoc.convert.toStringList(value)

tries its best to convert the value to a list of strings

apoc.convert.toBooleanList(value)

tries its best to convert the value to a list of booleans

apoc.convert.toNodeList(value)

tries its best to convert the value to a list of nodes

apoc.convert.toRelationshipList(value)

tries its best to convert the value to a list of relationships