in progress cast class to object