more explicit typecast for serializing RLimitType