Move cast from loop to constructor
Move cast from loop to constructor

wdm0006/categorical_encoding,wdm0006/categorical_encoding,scikit-learn-contrib/categorical-encoding,scikit-learn-contrib/categorical-encoding