generalized Convert