Fixed "as" method