force casting to ip4r to avoid errors on Postgres 9.2