Changed parameter casting from coercion to ToXXX() methods in modular inputs.