Added support for CheckedTo[primitive]Function