Didn't need to convert... was just using the for loop incorrectly