Is this cast necessary ?