Added function to convert a variable into a vector of ints. This might be useful?