golang interface to float64 code example Example: interface to int golang iAreaId := val.(int) iAreaId, ok := val.(int) // Alt. non panicking version