Fixing casting stuff + calling methods (need tests)