Removed useless casts