Attempt to convert nodeId to int if not None