generating of int and float casting works