Ensure stream size is integer.