Explicity cast calls to malloc