Swift実践入門
type(of:)関数で、変数や定数の型を確認できる。
type(of: 変数名または定数名)
#code(csharp){{ let a = 123 type(of: a) // Int.type }}