As you know, the sun is a golden in color too. Can you visualize the round sun warm, bright, and smiling? This metaphor is a comparison of the two. The sun is like the cat and the cat is like the sun.
(i think that's correct but if not, i sincerely apologize)