Added to_i and from_i alias methods

Includes test cases.