Remove explicit casts