asInstanceOf[String] is fragile when compared with toString - it can (and does) cause class cast exceptions.
Merge pull request #1539 from huntc/bad-dynamic-casts

Less compiler error handling is broken