remove no longer neccessary casts