Removed superfluous casts