[TypeCast]Apply type cast to Alarm and NetworkBearerSelection modules.

Apply type cast to Alarm and NetworkBearerSelection modules.