Fixed typcasting bug