Backport explicit casting

This backports explicit casting to `change_column` in migrations.
It's been a while, I really have no idea, it just looks funny.