Cast to integer on limit and offset.