Fixed a class cast exception when the Node-ID is a Long that got casted to String.