Articles tagged "type conversion"
6 min readIntermediate
Fix 'cannot use X (type Y) as type Z' in Go — Type Mismatch Guide
Fix 'cannot use X (type Y) as type Z' in Go. Covers explicit conversions, interface satisfaction, pointer vs value receivers, and type assertions with the ok pattern.
3 min readBeginner
Go Type Conversion Guide: rune to int, string to int, int to string (2026)
Complete Go type conversion guide 2026: rune to int with int(), string to int with strconv.Atoi, int to string with strconv.Itoa, byte to string, int64 conversions. All with working code examples.
1 min readBeginner
Converting String to Int in Java?
With Java, you can use the Integer.parseInt(). Here we will show you how to use parseInt to convert a String into an integer using Java. You can also use valueOf. Remember that when the string is not a valid integer it will be thrown NumberFormatException. check here for more details.