In the Image above, we see the Hindu God Vishnu as the cosmic man. This form of Vishnu is also called Vishvarupa, the being of ‘all forms’. Vishvarupa is dark blue, an image of the cosmos. His eyes are the sun and the moon. He gives forth an effulgent halo of light, and wears a cape of light. The cosmic man has four arms, each holding one of his attributes; a conch shell, a lotus flower, a mace and the discus (Sudarshana chakra). Veeraswamy Krishnaraj explains the symbolism:
“The conch represents the origin of primal sound OM, and the call Vishnu makes to draw the attention of man to His Higher Self. The club represents His power to inflict punishment or subdue; the discus represents the time (wheel of Time) that remains in Him and it stands for mind, concentration, and control of body. The lotus flower is the symbol of purity and peace. The fully bloomed lotus also represents blossoming Vijnāna, intuitive divine wisdom in a man who turned a leaf and became a yogi. This carrot-and-stick approach (the lotus flower and the club) helps the soul go forward to its destination: moksa, without gathering any karma on its long march…. Since he is the creator, his hands symbolize the evolving constituents of prakriti namely the mind, the intellect, the ego, and the consciousness. 
The cosmic man contains within himself all the worlds. The legs of the Cosmic man represent earth and the seven subterranean realms of Patala. The feet rest on the cosmic serpent Shesha. It is in these lower realms that the nāgas, vetalas and asuras reside. The head of Cosmic Man represents Brahmaloka, the abode of Brahma. The Mundaka Upanishad (8:1) speaks of Brahman as the cosmic man:
Harih, Om. There is this city of Brahman (the body), and in it the palace, the small lotus (of the heart), and in it that small ether. Now what exists within that small ether, that is to be sought for, that is to be understood.
And if they should say to him: ‘Now with regard to that city of Brahman, and the palace in it, i.e. the small lotus of the heart, and the small ether within the heart, what is there within it that deserves to be sought for, or that is to be understood.
Then he should say: ‘As large as this ether (all space) is, so large is that ether within the heart. Both heaven and earth are contained within it, both fire and air, both sun and moon, both lightning and stars; and whatever there is of him (the Self) here in the world, and whatever is not (i.e. whatever has been or will be), all that is contained within it.’
And if they should say to him: ‘If everything that exists is contained in that city of Brahman, all beings and all desires (whatever can be imagined or desired), then what is left of it, when old age reaches it and scatters it, or when it falls to pieces?’ Then he should say: ‘By the old age of the body, that (the ether, or Brahman within it) does not age; by the death of the body, that (the ether, or Brahman within it is not killed. That the Brahman) is the true Brahma-city (not the body). In it all desires are contained. It is the Self, free from sin, free from old age, from death and grief, from hunger and thirst, which desires nothing but what it ought to desire, and imagines nothing but what it ought to imagine. Now as here on earth people follow as they are commanded, and depend on the object which they are attached to, be it a country or a piece of land,
‘And as here on earth, whatever has been acquired by exertion, perishes, so perishes whatever is acquired for the next world by sacrifices and other good actions performed on earth. Those who depart from hence without having discovered the Self and those true desires, for them there is no freedom in all the worlds. But those who depart from hence, after having discovered the Self and those true desires, for them there is freedom in all the worlds. 
The Cosmic Man resides within the cave of the heart. ‘The city of Brahman’ resides within the cave of the heart. Within the ‘small lotus of the heart and the small ether within the heart’, there is the infinite palace. While all else perishes, this alone deserves to be sought after. This alone is freedom, as moksha, as enlightenment. This abode in the heart is that which ‘deserves to be sought for.’
If there is any doubt that the place of freedom– of enlightenment– lies within the heart, we shall be reassured by the Katha Upanishad (1.11-13):
That the Adorable One exists in the faces, the heads, the necks of all, he dwells in the cave (of the heart) of all beings, he is all-pervading.
That person is the great lord; he is the mover of existence. He possesses that purest power of reaching everything, he is light, he is undecaying.
In Symbols of Transformation, Carl Jung speaks of the ‘Primordial Person’, drawing upon a passage from the Shvetashvatara Upanishad:
Without feet, without hands, he moves, he grasps; eyeless he sees, earless he hears; he knows all that is to be known, yet there is no knower of him. Men call him the Primordial Person, the cosmic man. Smaller than small, greater than great ….” (cited in CW5, para. 182)
Read more on Jung’s and the Cosmic Man.