February 19, 2009

Every time you downcast a kitten breaks a rib

This is a snippet taken from our design guidelines document.

Most code doesn’t require casting. Avoid casting, especially if you cast to a more specialized class.