Translate an object to a typed object