private static Object valueAsString(Value value) {
        switch (value.getType()) {
            case STRING:
                return value.stringValue();
            case LONG:
                return value.longValue();
            case DOUBLE:
                return value.doubleValue();
            default:
                throw new IllegalStateException("simplemetrics impl is out of sync with itself, please file a ticket.");
        }
    }
Convert simple metrics snapshots into jdisc state snapshots.

@author arnej27959
container-core/src/main/java/com/yahoo/metrics/simple/jdisc/SnapshotConverter.java