func int64ToGo(term *ast.Terminal) (int64, error) { if term.Int64Value == nil { return 0, &ErrWrongType{"int64", term.String()} } return term.GetInt64Value(), nil }