FIX: use cython style type conversion