Converted the DOM Binder to a normal function

What makes DOM binding so special, huh? Now every function can benefit
from unit casting too.