I cleaned up the Doxygen for the CountedPtrCasting internals stuff. I still need the cast itself to work though.
CountedPtrCast compiles, but seems to have some runtime issues. I will investigate later and sleep now.