convert max # of columns to integer

seems that the conversion isn't done automagically in ruby 2.1