title: Determine if the integer is one digit and add a zero before it
body: <p>I need to check if the int is only one digit and if it is, I want to add a zero in front of it. I  have this code but it doesnt work. </p>
  
  <pre><code>var minutes2 = Int(minutes)
  var minutessize: Int = sizeofValue(minutes2)
  
  if minutessize &lt; 2 {
      var needStringHere = "0\(minutes2)"
      let a: Int? = needStringHere.toInt()
      minutes2 = a!
  }
  </code></pre>