func int32ToGo(term *ast.Terminal) (int32, error) { if term.Int32Value == nil { return 0, &ErrWrongType{"int32", term.String()} } return term.GetInt32Value(), nil }