Remove redundant `string_to_binary` from type-casting

Remove redundant `string_to_binary` from type-casting