cast columns of different types