type cast fix 2