---
title: "redundant-conversion"
description: "Detect conversions to the value's existing type."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# redundant-conversion

**Default severity:** `warning`

An exact same-type conversion cannot change a value or its method set. Remove
it to make the type flow clearer.

## Bad

```go
normalized := UserID(existingUserID)
```

## Good

```go
normalized := UserID(rawID)
```

Source: https://strider.gempir.com/analyzers/redundant-conversion/index.mdx
