title: cant send data to another activity because of number format exception
body: <p>from here im sending data</p>
  <pre><code>                val intent = Intent(this@Level1,ScoringActivity::class.java)
                  intent.putExtra(&quot;Scoring&quot;, mCurrentPosition.toString())
  
                  intent.putExtra(&quot;categoryType&quot;,categoryType)
                  startActivity(intent)
  </code></pre>
  <p>from here im receiving data</p>
  <pre><code>     if (intent.getStringExtra(&quot;Scoring&quot;)?.toInt()?: 0 &gt;= displayBest().toInt()) {
  
          val preferences: SharedPreferences = getSharedPreferences(&quot;Scoring&quot;, MODE_PRIVATE)
  
          val editor: SharedPreferences.Editor = preferences.edit()
          editor.putString(&quot;best&quot;, intent.getStringExtra(&quot;Scoring&quot;)).toString()
          editor.commit()
          }
  
      }
  </code></pre>
  <p>in if statement im getting Number Format Exception</p>