Remove unneccessary *alloc casts