Enable -Wconversion for core and fix the warnings.