Type conversions
Type conversions T(x)
must be explicit and different types need to be compatible.
var f float64 = 1.2
// fraction is discarded
var i int = int(f)
var s string = "Hello World"
var r []rune = []rune(s)
var b []byte = []byte(s)
Package strconv
Conversions to and from string representations of basic data types.