.I am new to iOS and to Swift In my application I'm trying to print an optional value and it prints "Optional(value of the variable)" How do I remove this word optional
var bDay = StringUtils.convertDateToString(birthDate, format: Constants.BIRTHDAY_FORMAT)
let age = self.clientDetail?.getAge()
println("age.....\(age)")
bDay += "\(age)"
The output in the console is
age.....Optional(29)
I'm trying to assign this variable to a UILabel but on screen it shows up like Sep 17, 1986 Optional(29)
My objective is to remove this optional word and make it appear like Sep 17, 1986(29)
Thanks in advance