Removed redundant type casts. A lot of them.