Cast exception to string.