Coerce number_of_pages to_i before using