diff --git a/library/src/com/WazaBe/HoloEverywhere/widget/NumberPicker.java b/library/src/com/WazaBe/HoloEverywhere/widget/NumberPicker.java
index <HASH>..<HASH> 100644
--- a/library/src/com/WazaBe/HoloEverywhere/widget/NumberPicker.java
+++ b/library/src/com/WazaBe/HoloEverywhere/widget/NumberPicker.java
@@ -414,7 +414,7 @@ public class NumberPicker extends LinearLayout {
 					mInputText.selectAll();
 				} else {
 					mInputText.setSelection(0, 0);
-					validateInputTextView(v);
+					validateInputTextView(mInputText);
 				}
 			}
 		});
@@ -1359,8 +1359,8 @@ public class NumberPicker extends LinearLayout {
 		return false;
 	}
 
-	private void validateInputTextView(View v) {
-		String str = String.valueOf(((TextView) v).getText());
+	private void validateInputTextView(NumberPickerEditText v) {
+		String str = String.valueOf(v.getText());
 		if (TextUtils.isEmpty(str)) {
 			updateInputTextView();
 		} else {
Fix crashing with using NumberPicker