Added implementation of to method for integers in collections.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>