Clean custom type