fix to convert numbers to Int or float