I'm used to staying up late.

Literal

Night-late [to-に] am-accustomed-[ている].

慣れる ('become accustomed to, get used to') takes its object with に. With ~ている, it expresses the resulting state of habituation — 'I am (currently) in a state of having become accustomed.' A clean example of the stative ~ている use.