A system and method for latching a boom of a vehicle. A boom with a plurality of wings is provided. The wings are hinged together and a linear actuator is provided to extend and fold the wings. When the wings are extended, a latching assembly secures the boom in the extended position. A retainer on one of the wings receives a catch on another of the wings. A pin then extends through the catch to retain the catch and maintain the boom in the extended position. When it is desired to fold the boom, the pin is retracted and the linear actuator folds the wings.