[PATCH 5/7] examples: fix incompatible type casts