FIX: moved some runtime type-casting generation to backends.
FIX: moved some runtime type-casting generation to backends.

NikolayShubenkovProgSchool/red,red-eco/red,vehar/red,NikolayShubenkovProgSchool/red,red-eco/red,iArnold/red,iArnold/red,rheber/red,vehar/red,rheber/red