Added support for unsafe cast checking.

Unfortunately, it breaks the compiler.  I'm committing only to get this
onto my work computer (despite how bad of a habit that is).