Is your object reference variable typed exactly the same throughout your program as it is in the variable declaration?