I was trying to avoid casting, I'll change it though.