convert between objects, useful for strings->anything else.