remove multiple dynamic casts
remove more multiple dynamic casts