Config to int