Reduce casting nastiness.
Reduce casting nastiness.