Delete most of type castings