Force integer for task length