capture built-in types by value