Remove some useless casts.
Fixes compilation of abs for C++11.