Fixed compilation warning.

Removed redundant cast to String.