Changed OverideMethod in Class.h to force a type cast