Make a more traditional (print) function that checks types automatically