type cast fix 3