Remove double cast when one will do