Fixed comments.
Fixed invalid cast.