D-Programming-Language/phobos — pull request #1017 by AndrejMitrovic (2012-12-18 17:57:45+00:00)
Title: Issue 5543 - conv.to should convert char to integral/floating-point as a single-char string

http://d.puremagic.com/issues/show_bug.cgi?id=5543

Before:

```D
assert(to!int('1') == 49);
```

After:

```D
char one = '1';
wchar two = '2';
dchar three = '3';
assert(to!int(one) == 1);
assert(to!int(two) == 2);
assert(to!int(three) == 3);
assert(to!int(to!float(one)) == 1);
```

Essentially char conversion would behave as if it's a string of length 1.