ah, it cannot be done that way, as 'field' has to be known to the
compiler.
so your patch is fine as-is, the extra line is an acceptable cost, as we
get:
- the type filter (trying to cast an object outside of the narrow list
of trace entry types will cause a failed build - i.e. most of the
practical dangers of C type casting are avoided!)
- the runtime entry type checker
Ingo
--