New compiler version doesn't allow these casts, I'll have to find another way