Scala supports implicit conversions that can be used to convert between different types. These are often used for type enrichment or to provide more natural operations on types.
xxxxxxxxxx
implicit def intToString(i: Int): String = i.toString
val intValue: Int = 42
val stringValue: String = intValue // The implicit conversion is applied
println(stringValue)