Replace type system