Update how to add custom Type

New in sf2.3, update the way we have to use to add custom Type.