While assigned to authorized Coast Guard duty, any motorboat or yacht shall be deemed to be a public vessel of the United States and a vessel of the Coast Guard within the meaning of sections
646 and
647 of this title and other applicable provisions of law.