code: func (t Result) Int() int64 {
  	switch t.Type {
  	default:
  		return 0
  	case True:
  		return 1
  	case String:
  		n, _ := parseInt(t.Str)
  		return n
  	case Number:
  		// try to directly convert the float64 to int64
  		n, ok := floatToInt(t.Num)
  		if !ok {
  			// now try to parse the raw string
  			n, ok = parseInt(t.Raw)
  			if !ok {
  				// fallback to a standard conversion
  				return int64(t.Num)
  			}
  		}
  		return n
  	}
  }
docs: // Int returns an integer representation.