Got rid of bad string casts