Converts ids to integers