Correct fix for getting column to use for casting value, go back to the class column_types (that will have timezone aware columns types set for attributes).