Force the output to a specific type.