Namespace: > Vector2D is my own class. If i compare vs2 with vs it works fine, > but if i compare vs or vs2 with vf, the cast fail and i get a > null-reference. How can i avoid this? I suggest to ask such questions in D.learn. Bye, bearophile