Bukkit/Bukkit — comment on commit 1927e22e3336eb619c8d043eafcc67cf76dc471d
File: src/main/java/org/bukkit/util/NumberConversions.java line 16
By main--:

@xZise: If the object is neither a number nor a string, a ClassCastException is thrown and catched and the default (0) is returned.