Cast posts limit value to Integer