proxy : remove some unnecessary casts

we only create instances of these wrapper classes internally, so we can
make assumptions about the constructor arguments (they will be proxies
also)