Use FS_Path class from which conversion to other types can easily be done.