Removed unnecessary explicit type casts.