bug fixed in AsmGenerator.VisitCast