In the Osprey book, "US Navy Catalina Units of the Pacific War", a caption of your second photo says, "Guadalcanal based VP-54 fitted several of its PBY-5As with twin, fixed, 20mm cannon in the nose in 1943-44. The weapon's rate of fire was slower than the 0.50-cal machine gun, but the hitting power of the slugs was far greater"