Casting Errors Fixed