Converting cast of string to test casting exception.