Cast ActiveRecord::Relation into an Array