That is not true. The author mixed up the numbers. Yamato did receive it's AA refit resulting in 3x3 46cm 2x3 15,5cm and 12x2 12,7cm Guns. Musashi did not receive it's extra 12,7cm guns prior to her loss due to large number of requirements from the weapon plants, but surely she would receive them after the Battle of Leye Gulf action if she would survive. 40 twin mounts would be not impossible but highly impractical to mount on the Yamatos.
There were not enough mounts and guns at that time.
Even if you remove the two triple centreline 15,5cm turrets, and replace them with 12,7cm twins as well as 2-2 twins at their bases that is only 6 more totalling 18 twins.
Removing the 2nd 46cm turret could free up 3-4 on the barbette and another 4-6 around the barbette for a total of 7-10 more for 28. If you remove all main armament and transforming it into an AA battleship then you can have 40 twin mounts on the hull. And I did not even count the space required for the director and range finder equipment for the extra guns.
So no that is not correct information.