Use piano pedal as sustain pedal ?

Hello, is it possible to use the piano pedal as a sustain pedal?

I’m using Cubase Studio 5.5.2

My sustain pedal is broken, and it has not a standard connector, so I want to temporarily use the piano pedal until I find a better solution.

Kind regards!

Georg