module Neighbor::PostgreSQL::ArrayMethods
def type_cast_array(value, method, ...)
def type_cast_array(value, method, ...) if (subtype.is_a?(Neighbor::Type::Vector) || subtype.is_a?(Neighbor::Type::Halfvec)) && method != :deserialize && value.is_a?(::Array) && value.all? { |v| v.is_a?(::Numeric) } super(ArrayWrapper.new(value), method, ...) else super end end