Do we need to make it explicit in the name that this is doing a type check, or should it just be `setPage`?