convert string to uint in go lang
<p>I am trying to convert the string to uint on 32-bit ubuntu using the following code. But it always convert it in uint64 despite explicitly passing 32 as the argument in the function. Below in the code mw is the object of the <a href="https://github.com/gographics/imagick" rel="noreferrer">image magick</a> library. Which returns <code>uint</code> when <code>mw.getImageWidth()</code> and <code>mw.getImageHeight()</code> is called. Also, it accepts the <code>uint</code> type argument in the <a href="https://github.com/gographics/imagick/blob/master/imagick/magick_wand_image.go" rel="noreferrer">resize</a> function.   </p>

<pre><code>    width :=  strings.Split(imgResize, "x")[0]
    height := strings.Split(imgResize, "x")[1]

    var masterWidth uint = mw.GetImageWidth() 
    var masterHeight uint = mw.GetImageHeight() 

    mw := imagick.NewMagickWand()
    defer mw.Destroy()

    err = mw.ReadImageBlob(img)
    if err != nil {
            log.Fatal(err)
        } 

    var masterWidth uint = mw.GetImageWidth() 
    var masterHeight uint = mw.GetImageHeight()

    wd, _ := strconv.ParseUint(width, 10, 32)
    ht, _ := strconv.ParseUint(height, 10, 32)

   if masterWidth &lt; wd || masterHeight &lt; ht { 
     err = mw.ResizeImage(wd, ht, imagick.FILTER_BOX, 1)
     if err != nil {
        panic(err)
    } 
   }
</code></pre>

<p>Error is :</p>

<pre><code># command-line-arguments
test.go:94: invalid operation: masterWidth &lt; wd (mismatched types uint and uint64)
goImageCode/test.go:94: invalid operation: masterHeight &lt; ht (mismatched types uint and uint64)
goImageCode/test.go:100: cannot use wd (type uint64) as type uint in argument to mw.ResizeImage
goImageCode/AmazonAWS.go:100: cannot use ht (type uint64) as type uint in argument to mw.ResizeImage
</code></pre>