Malloc: cast return types