throw error if not numeric type
change to version 0.7.3