GIVE ANSWERS - English

Undi sekarang!Tidak dijawab
Doubts

Are these sentences correct? 1. It comes in handy having a polyglot partner. 2. Having a polyglot partner comes in handy.

It seems to me that in the first case the direct object (having...) is acting as the subject too (it) or vice versa. Help me clarify this, please.