Fixed using cast instead of taintCast in initTaints