Removed several redundant casts.

Change-Id: Icf8fe3f6b283e285d087ad68d3b58a5bb7340bb3