Remove warnings

Remove implicit conversions of datatypes and convert them explicitly to remove XCode warnings