Truncating custom objects