Remove unneccessary conversions.
Fixed failed test from convert char to int32.