Tool Labs: yet another funky ruby type error

To_i for the win.

Change-Id: I6f04bad14b1f73ec7e23d941d09f03ba79cdfb7f
Merge "Tool Labs: yet another funky ruby type error" into production