---
title: "Discussion on \"Conversion, Not Casting\" | Hashnode"
description: "Discussion on \"Conversion, Not Casting\". Conversion means we take the value of one type and convert it to another type.  \nLet's try it out in the Go playground  \npackage main\n\nimport (\n    \"fmt\"\n)\n\nvar a int\ntype hotdog int\nvar b hotdog\n\nfunc main() {\n    a = 42\n    b = hotdog(a)  // we can..."
url: "https://hashnode.com/posts/conversion-not-casting--deleted/6280ea930094f2f13f516140"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Conversion, Not Casting](https://blog.cloudnativefolks.org/conversion-not-casting--deleted?utm_source=hashnode&utm_medium=feed)

Conversion means we take the value of one type and convert it to another type. Let's try it out in the Go playground package main import ( "fmt" ) var a int type hotdog int var b hotdog func main() { a = 42 b = hotdog(a) // we can...

May 15, 2022 · 1 min read · blog.cloudnativefolks.org  
Updated May 16, 2022  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

  
[View profile](https://hashnode.com/@sangambiradar)

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
