title: String cannot be cast to Float - Kotlin
body: <pre><code>val nextDigit = passedList[i + 1] as Float 
  </code></pre>
  <p>I'm trying cast this and It's giving that error. I tried with .toFloat() but It doesn't work..</p>
  <pre><code>Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Float
      at com.example.calculator.MainActivity.calcTimesDiv(MainActivity.kt:108)
  </code></pre>