Fixed issue where from_obj() raised exception when input object was TTPBaseType instance. Resolves #68