only allow int or boolean for printing