It's just an example. Think of Point as pixel position on a screen. So float to int is acceptable. But thanks for the example. What I was after was something like this: proc point[T, U](dest: var Point[T]; pt: Point[U]) = dest.x = T(pt.x) dest.y = T(pt.y) Run
I tried it with Point[U] as return value, but got an error: "can't instanciate U" So now I can use it like this: var b = point(2.1, 2.2) # float var c: Point[int] c.point(b) Run Now how to turn that into? c = point(b) Run :-)