A configurable typecaster that accepts an object that respond to #new and takes a single argument. ``` ruby class InitializationTypecaster def initialize(type) @type = type end def call(value) type.new(value) end end ```
A configurable typecaster that accepts an object that respond to #new and takes a single argument.