Bug fix: casting problem in OneHotFormatter

It was causing the optimization fail on gpu because lack of support for int8 on gpu