var w:Int = Int(self.bounds.size.width / Float(worldSize.width))
var h:Int = Int(self.bounds.size.height / Float(worldSize.height))
Error : 'CGFloat is not convertible to UInt8'
I researched this conver type and i found this one Convert Float to Int in Swift my code like this but not working any idea ?