func uint32ToGo(term *ast.Terminal) (uint32, error) { if term.Uint32Value == nil { return 0, &ErrWrongType{"uint32", term.String()} } return term.GetUint32Value(), nil }