If you've encountered actual casting problems, please start a new topic on GateIn forum, describing in more detail your setup - i.e. what version of GateIn you're using, the stack trace ...
Maybe this is a GateIn issue - inadvertently leaking third party jars to user applications.