Convert timeout to int

Change-Id: I8fec45b223ddc6e177a76ee53c466de7863ce910