convert fields to int or float whenever possible