type cast fix 4