Changing type recasting

Changes a few type casts, for example:
double(i) —>  ( (double) i )