How to change a variable value in Static GDScript?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By NikoKutie

var a: int = 1

how i turn this line into a safe line?
a = speed * delta

:bust_in_silhouette: Reply From: siska

You can use ‘casting’ :

var a:int =1
a = int(speed * delta)