Fix warnings when formatting exceptions.

The compiler generates Format String Issue warnings when formatting numbers for the description of NSExceptions. The fix is to simply cast the number to the appropriate type.