Renamed ToMethod to AsMethod