Silence warning in test

We still had one file using `column_for_attribute` when it could return
nil, causing deprecation warnings in the tests.
looks a bit weird. Didn't you use: `cast_type` as variable name before?