Converts ids to ints if they are incorrectly represented as strings