Using array index is easy trick for conversion but it is hard to maintain the codes. Does it make sense that we always have to take care of specific implementation of vector class when changing VectorNormType?
I think we should have a converting function with `switch (nmtype)` cases. Advantage of this way is that compilers can easily find mistakes so that we can avoid risks of having bugs.