Cannot convert value of type 'Int' to expected argument type 'ClassName'
<pre><code>struct ColorPalette {
    var DefaultBarTintColor : UIColor = UIColorFromRGB(0x75b5d4)
    func UIColorFromRGB(rgbValue: UInt) -&gt; UIColor {
        return UIColor(
            red: CGFloat((rgbValue &amp; 0xFF0000) &gt;&gt; 16) / 255.0,
            green: CGFloat((rgbValue &amp; 0x00FF00) &gt;&gt; 8) / 255.0,
            blue: CGFloat(rgbValue &amp; 0x0000FF) / 255.0,
            alpha: CGFloat(1.0)
        )
    }
}
</code></pre>

<p>error : Cannot convert value of type "int' to expected argument type 'MyClassName'</p>

<p>If I do</p>

<pre><code>view.backColor = UIColorFromRGB(UIColorFromRGB)
</code></pre>

<p>it works</p>

<p>But I want to do like this:</p>

<pre><code>view.backColor = ColorPalette.DefaultBarTintColor
</code></pre>

<p>I don't know how to fix it</p>