Basically, I am using 

`var highscoreDefault = NSUserDefaults.standardUserDefaults()`

to save the high score, which in this case is a time. The problem I am having is that the stopwatch timer is using Uint8 and I get the error "Uint8 is not convertible to Int"

This is driving me a bit nuts trying to fix this and I am concluding the simplest way is to convert the Uint8 values into Int, so that the fastest time can be saved in the game as a high score.

Any help would be appreciated, thanks.

The 'startSeconds' and 'startFraction' variables are in Uint8 .. but the 'hseconds' and 'hfrac' variables need to be Int in order to be saved.

The error is happening on these lines:

```
hseconds = startSeconds
hfrac = startFraction

```

Here the relevant function: 

```
func stop() {

    hseconds = startSeconds
    hfrac = startFraction

    if (hseconds < highscoreSec) {

        // && (fraction < highscoreFrac)

        //highscoreSec = startSeconds
        //highscoreFrac = startFraction

        highscoreDefault.setValue(highscoreSec, forKey: "seconds")
        highscoreDefault.setValue(highscoreFrac, forKey: "frac")
    }

    highscoreDefault.synchronize()

    timer.invalidate()
    timer == 0
}

```

here is more code:

```
override func viewDidLoad() {
    super.viewDidLoad()

    var highscoreDefault = NSUserDefaults.standardUserDefaults()
    playButton.hidden = true

    if (highscoreDefault.objectForKey("seconds") != nil) { highscoreSec = highscoreDefault.valueForKey("seconds")as NSInteger!
    }

    if (highscoreDefault.objectForKey("frac") != nil) { highscoreFrac = highscoreDefault.valueForKey("frac")as NSInteger!
    }

    highscoreLabel.text = "(highscoreSec):\(highscoreFrac)"

    // Do any additional setup after loading the view.
}

```

If you noticed, some of the lines are commented out as part of the debugging process.