String
has constructors
init<T : _SignedIntegerType>(_ v: T, radix: Int, uppercase: Bool = default)init<T : _UnsignedIntegerType>(_ v: T, radix: Int, uppercase: Bool = default)
which can be used here:
let num = 100let str = String(num, radix: 2)print(str)// Output: 1100100