Remove useless cast.

Suggested by mpi@.