Scissors, perhaps? Just cut the last connector off.
The original cables are straight through. With the A4000T Commodore actually used several off-the-shelf parts, such as a standard AT pc case, the motherboard was standard AT pc size, and those 40-pin connectors were chosen because they are standard stuff.