Get right type of null return