Warn about non integer profile arguments

fixes #998
refactor to cast to Integer and rescue ArgumentError instead of using regexp