<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def i2b(self, pkt, x):
 """Convert internal value to internal value"""

        if type(x) is str:
          x = bytes([ ord(i) for i in x ])
        return x