Cast timeout to a number.