Remove explicit casts

Remove explicit casts.