add some casts to avoid kwargs const warnings
Authored by: dockes 2009-11-18
Parent(s): [289810]
Child(ren): [328318]