Backport explicit casting

This backports explicit casting to `change_column` in migrations.