func uint64ToGo(term *ast.Terminal) (uint64, error) { if term.Uint64Value == nil { return 0, &ErrWrongType{"uint64", term.String()} } return term.GetUint64Value(), nil }