It works as long as ParseContext is the first member of the private struct Signed-off-by: Diego Biurrun <diego@biurrun.de>