title: Reassigning different type to variables in Go
body: <p>Looking to do something like this</p>
  
  <pre><code>curr := foo()["blah"].(string)
  curr, err := strconv.ParseFloat(curr, 64)
  </code></pre>
  
  <p><code>ERROR: cannot assign float64 to curr (type string) in multiple assignment</code></p>
  
  <p>I dont want to make another temporary variable that I won't use after the conversion. I'm fairly new to Go so is there an approach that will help me avoid</p>
  
  <pre><code>temp := foo()["blah"].(string)
  curr, err := strconv.ParseFloat(temp, 64)
  </code></pre>