Cast columns to the type of the template
coerceColumns(template, x)
template
data.frame
x
only affects columns in both the template and x