JSONB = Type("jsonb") do
            casts = ::Hash.new(-> v { ::Sequel.pg_jsonb(v) })
            jsonb_null = ::Sequel.pg_jsonb_wrap(nil)
            casts[JSONNullType] = -> _ { jsonb_null }
            casts[::NilClass] = -> _ { jsonb_null }