Ah, for some reason I got it in my head that value was always a string. Probably looked too fast.