I would argue this is a View concern rather than a Controller concern. The Controller should deal with the appropriate strong types for the field, and the View should render the type as required for that View.