Fixed A Casting Error