title: Could not find an overload for '*' that accepts the supplied argument
body: <p>I have converted a <code>String</code> to an <code>Int</code> by by using <code>toInt()</code>. I then tried multiplying it by 0.01, but I get an error that says <code>Could not find an overload for '*' that accepts the supplied argument.</code> Here is my code:</p>
  
  <pre><code>var str: Int = 0
  var pennyCount = 0.00
  
  str = pennyTextField.text.toInt()!
  pennyCount = str * 0.01
  </code></pre>
  
  <p>From reading other posts it seems that the answer has to do with the type. For example if the type is set as an Integer then it gets a similar error. I have tried changing the type to an Int, but that doesn't seem to solve the problem. </p>
  
  <p>I have also tried setting the type for 'str' and 'pennyCount' as <code>Floats</code> and <code>Doubles</code> and all combinations of <code>Floats</code>, <code>Doubles</code>, and <code>Ints</code>. My guess is the the problem has to do with <code>toInt()</code> function's conversion of a <code>String</code> to an <code>Integer</code>. </p>
  
  <p>Could someone help clarify what the issue may be?</p>