Use operator cast instead: (Account) object.