Implicitly type cast exception while logging.

Removed the unnecessary (string) type-casting.