make all MethodReference casting more secure for #115