Added -Wconversion and fixed some of the following errors.