Should I change technology/domain in case of h1b?

Hi all,

I have got 8+ years of experience in C/C++/network security domain. Now my company is offering me H1b visa.
Now they are asking me to be flexible ie flexible in terms of technology. If everything goes right (lottery, visa), they are not sure what kind of project they will get for me. It is possible that they put me in project of technology/domain other than C/network security.

so now I am confused, what will be impact on my career if I choose to work on different technology? Is it good to be Jack of all Master of none or be technology specialist? I mean is it good to stick to my technology/domain or give preference to monetary benefits.

I know it should be my decision finally, but what are your thoughts on this?