Ensure TTL is treated as an int in the CLI

Change-Id: Icd6e56adb416946af98bcc1dd1fbbe16c2aef8c8