Ok, Magic is too strong a word. This is really based on the TypeCoercer, which is not quite magic (but close).
Selected number: ${number}