public long to(UnitType toConvert) {
        if (value == 0) {
            return 0;
        }
        switch (toConvert) {
            case SECONDS:
                return toSeconds();
            case MINUTES:
                return toMinutes();
            case HOURS:
                return toHours();
            case DAYS:
                return toDays();
            case MILLISECONDS:
            default:
                return toMillis();
        }
    }