Fix early cast