avoiding-angle-bracket-assertions

Avoid angle-bracket type assertions (<Type>) and use 'as Type' syntax instead