Fix typcasting statements