Cast TimeStamp to Int.