class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Array

def initialize(subtype)

def initialize(subtype)
  @subtype = subtype
end

def type_cast(value)

def type_cast(value)
  if String === value
    ConnectionAdapters::PostgreSQLColumn.string_to_array value, @subtype
  else
    value
  end
end