Made Convert() generic