Function GenericPath.opCast
Converts the path to a different path format.
P opCast(P)() const
if (isInstanceOf!( .GenericPath, P));
Throws
A PathValidationException
will be thrown if the path is not
representable in the requested path format. This can happen
especially when converting Posix or Internet paths to windows paths,
since Windows paths cannot contain a number of characters that the
other representations can, in theory.