"Groan...."
https://issues.dlang.org/show_bug.cgi?id=12625

The call to `to` itself is fine, but the way you are handling that return value is wrong. This is a runtime error. At the very least, I'd leave it out.