I can't figure out how to make this function not yield the compiler error.

The function takes the duration in ms, and prepend hours/minutes/seconds with a 0 if the number is less than 10.

```
private msToTime(duration:any):string {
    var milliseconds:string = String(parseInt((duration%1000)/100))
    var seconds:string = String(parseInt((duration/1000)%60))
    var minutes:string = String(parseInt((duration/(1000*60))%60))
    var hours:string = String(parseInt((duration/(1000*60*60))%24))

    hours   = (parseInt(hours) < 10)   ? "0" + hours   : hours;
    minutes = (parseInt(minutes) < 10) ? "0" + minutes : minutes;
    seconds = (parseInt(seconds) < 10) ? "0" + seconds : seconds;

    return hours + ":" + minutes + ":" + seconds;
}

```