Are there any built-in methods how to get byte representation of e.g. int and vice versa, to get int providing four bytes?

Thanks,
John