added convert and project functions, changed ConvertIndex to use these