Removed useless explicit casts