Create object with type accessor